[INFO] cloning repository https://github.com/devillove084/HierarchicalCache
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/devillove084/HierarchicalCache" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0e6f95b758dbb9df274075d550e2b0dc8fd66699
[INFO] building devillove084/HierarchicalCache against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdevillove084%2FHierarchicalCache" "/workspace/builds/worker-7/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/devillove084/HierarchicalCache on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/devillove084/HierarchicalCache
[INFO] finished tweaking git repo https://github.com/devillove084/HierarchicalCache
[INFO] tweaked toml for git repo https://github.com/devillove084/HierarchicalCache written to /workspace/builds/worker-7/source/Cargo.toml
[INFO] crate git repo https://github.com/devillove084/HierarchicalCache already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b912cc82c50f04766afc86e0a8c1d18c6ac9a84292dad4700072646807829c70
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "b912cc82c50f04766afc86e0a8c1d18c6ac9a84292dad4700072646807829c70", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b912cc82c50f04766afc86e0a8c1d18c6ac9a84292dad4700072646807829c70", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b912cc82c50f04766afc86e0a8c1d18c6ac9a84292dad4700072646807829c70", kill_on_drop: false }`
[INFO] [stdout] b912cc82c50f04766afc86e0a8c1d18c6ac9a84292dad4700072646807829c70
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 61516c74a0af0eca5eb6bb1328b91dbdab5dbe11fdb98798dc2c8432c91e536a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "61516c74a0af0eca5eb6bb1328b91dbdab5dbe11fdb98798dc2c8432c91e536a", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling libc v0.2.86
[INFO] [stderr]    Compiling proc-macro2 v1.0.24
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling syn v1.0.60
[INFO] [stderr]    Compiling serde_derive v1.0.123
[INFO] [stderr]    Compiling serde v1.0.123
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling typenum v1.12.0
[INFO] [stderr]    Compiling memchr v2.3.4
[INFO] [stderr]    Compiling ppv-lite86 v0.2.10
[INFO] [stderr]    Compiling getrandom v0.2.2
[INFO] [stderr]    Compiling once_cell v1.5.2
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling regex-syntax v0.6.22
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling const_fn v0.4.5
[INFO] [stderr]    Compiling byteorder v1.4.2
[INFO] [stderr]    Compiling smallvec v1.6.1
[INFO] [stderr]    Compiling subtle v2.4.0
[INFO] [stderr]    Compiling hashbrown v0.9.1
[INFO] [stderr]    Compiling arrayref v0.3.6
[INFO] [stderr]    Compiling arrayvec v0.5.2
[INFO] [stderr]    Compiling constant_time_eq v0.1.5
[INFO] [stderr]    Compiling seahash v4.1.0
[INFO] [stderr]    Compiling instant v0.1.9
[INFO] [stderr]    Compiling lock_api v0.4.2
[INFO] [stderr]    Compiling blake3 v0.3.7
[INFO] [stderr]    Compiling thread_local v1.1.3
[INFO] [stderr]    Compiling generic-array v0.14.4
[INFO] [stderr]    Compiling ahash v0.7.0
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling num-bigint v0.3.1
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]    Compiling crossbeam-utils v0.8.1
[INFO] [stderr]    Compiling memoffset v0.6.1
[INFO] [stderr]    Compiling indexmap v1.6.1
[INFO] [stderr]    Compiling aho-corasick v0.7.15
[INFO] [stderr]    Compiling quote v1.0.8
[INFO] [stderr]    Compiling parking_lot_core v0.8.2
[INFO] [stderr]    Compiling num_cpus v1.13.0
[INFO] [stderr]    Compiling mio v0.7.8
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_core v0.6.2
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling rand_xorshift v0.2.0
[INFO] [stderr]    Compiling parking_lot v0.11.1
[INFO] [stderr]    Compiling rand_chacha v0.3.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.1
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling rand v0.8.3
[INFO] [stderr]    Compiling regex v1.4.3
[INFO] [stderr]    Compiling crypto-mac v0.8.0
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling env_logger v0.7.1
[INFO] [stderr]    Compiling quickcheck v0.9.2
[INFO] [stderr]    Compiling bincode v1.3.1
[INFO] [stderr]    Compiling num-complex v0.3.1
[INFO] [stderr]    Compiling serde_cbor v0.11.1
[INFO] [stderr]    Compiling probabilistic-collections v0.7.0
[INFO] [stderr]    Compiling num v0.3.1
[INFO] [stderr]    Compiling HierarchicalCache v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/lcache/cache.rs:118:25
[INFO] [stdout]     |
[INFO] [stdout] 117 |             if let Some(removed) = self.store.remove(&victim.key) {
[INFO] [stdout]     |                                    ---------- mutable borrow occurs here
[INFO] [stdout] 118 |                 let k = self.key_hash(&removed.k);
[INFO] [stdout]     |                         ^^^^          ---------- mutable borrow later used here
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `item.v` which is behind a shared reference
[INFO] [stdout]    --> src/lcache/cache.rs:290:18
[INFO] [stdout]     |
[INFO] [stdout] 290 |             Some(item.v)
[INFO] [stdout]     |                  ^^^^^^ move occurs because `item.v` has type `V`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `g`
[INFO] [stdout]    --> src/lcache/store.rs:185:9
[INFO] [stdout]     |
[INFO] [stdout] 184 |         let result = self.data.keys(&g);
[INFO] [stdout]     |                                     -- `g` is borrowed here
[INFO] [stdout] 185 |         result
[INFO] [stdout]     |         ^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `.collect()` to allocate the iterator
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `g`
[INFO] [stdout]    --> src/lcache/store.rs:198:17
[INFO] [stdout]     |
[INFO] [stdout] 190 |         if let Some(item) = self.data.get(k, &g) {
[INFO] [stdout]     |                                              -- `g` is borrowed here
[INFO] [stdout] ...
[INFO] [stdout] 198 |                 Some(item)
[INFO] [stdout]     |                 ^^^^^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `g`
[INFO] [stdout]    --> src/lcache/store.rs:212:21
[INFO] [stdout]     |
[INFO] [stdout] 207 |         if let Some(item) = self.data.get_mut(k, &g) {
[INFO] [stdout]     |                                                  -- `g` is borrowed here
[INFO] [stdout] ...
[INFO] [stdout] 212 |                     Some(item)
[INFO] [stdout]     |                     ^^^^^^^^^^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `item` as mutable, as it is not declared as mutable
[INFO] [stdout]    --> src/lcache/store.rs:215:22
[INFO] [stdout]     |
[INFO] [stdout] 207 |         if let Some(item) = self.data.get_mut(k, &g) {
[INFO] [stdout]     |                     ---- help: consider changing this to be mutable: `mut item`
[INFO] [stdout] ...
[INFO] [stdout] 215 |                 Some(item.borrow_mut())
[INFO] [stdout]     |                      ^^^^ cannot borrow as mutable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*i` which is behind a shared reference
[INFO] [stdout]    --> src/lcache/store.rs:236:14
[INFO] [stdout]     |
[INFO] [stdout] 236 |         Some(*i)
[INFO] [stdout]     |              ^^ move occurs because `*i` has type `Item<K, V>`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `g`
[INFO] [stdout]    --> src/lcache/store.rs:251:9
[INFO] [stdout]     |
[INFO] [stdout] 251 |         self.data.remove(k, &g)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^--^
[INFO] [stdout]     |         |                   |
[INFO] [stdout]     |         |                   `g` is borrowed here
[INFO] [stdout]     |         returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0502, E0507, E0515, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0502`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `HierarchicalCache`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "61516c74a0af0eca5eb6bb1328b91dbdab5dbe11fdb98798dc2c8432c91e536a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "61516c74a0af0eca5eb6bb1328b91dbdab5dbe11fdb98798dc2c8432c91e536a", kill_on_drop: false }`
[INFO] [stdout] 61516c74a0af0eca5eb6bb1328b91dbdab5dbe11fdb98798dc2c8432c91e536a
